import request from '@/utils/http'
export function insertCartAPI({skuId,count}){
  return request({
    url: '/member/cart',
    method: 'POST',
    data: {
      skuId,
      count,
    }
  })
}
export function findNewCartListAPI(){
  return request({
    url: '/member/cart',
  })
}
export function delCartAPI(ids){
  return request({
    url: '/member/cart',
    method: 'DELETE',
    data:{
      ids,
    }
  })
}
export function mergeCartAPI(data){
  return request({
    url: '/member/cart/merge',
    method: 'POST',
    data: data,
  })
}
